Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

chore(deps): upgrade openiap-gql 1.0.11#15

Merged
hyochan merged 3 commits intomainfrom
migration/openiap-gql-1.0.11
Oct 2, 2025
Merged

chore(deps): upgrade openiap-gql 1.0.11#15
hyochan merged 3 commits intomainfrom
migration/openiap-gql-1.0.11

Conversation

@hyochan
Copy link
Member

@hyochan hyochan commented Oct 2, 2025

Summary

Update openiap-gql from 1.0.9 to 1.0.11 to support new subscription management features

Changes

Type System Updates

  • ActiveSubscription: Added basePlanIdAndroid, currentPlanId, purchaseTokenAndroid fields for enhanced subscription management
  • PurchaseCommon/PurchaseAndroid/PurchaseIOS: Added currentPlanId field for unified plan identification across platforms
    • Android: uses basePlanId (e.g., "premium", "premium-year")
    • iOS: uses productId (e.g., "com.example.premium_monthly")

Script Improvements

  • Updated generate-types.sh to automatically add override modifier for currentPlanId in generated types
  • Ensures Types.kt remains read-only and regenerates correctly without manual fixes

Code Cleanup

Benefits

  • Better subscription upgrade/downgrade support: purchaseTokenAndroid enables seamless plan changes
  • Unified plan identification: currentPlanId provides platform-agnostic way to identify user's subscription tier
  • Improved maintainability: Auto-generated types now compile without manual patches

Testing

  • ✅ Library module builds successfully
  • ✅ Example app compiles and runs
  • ✅ Types regeneration tested with ./scripts/generate-types.sh

@hyochan hyochan added ፦ refactor 🚽 migration Activities due to changes in framework labels Oct 2, 2025
@hyochan hyochan merged commit a579a0e into main Oct 2, 2025
4 checks passed
@hyochan hyochan deleted the migration/openiap-gql-1.0.11 branch October 2, 2025 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🚽 migration Activities due to changes in framework ፦ refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant